import os,sys
DEBUG=False

def message(msg):
    """
    It shows a message on the screen.Useful for debugging
    """
    debugmsg(msg)
    mesg = "xmessage " + str(msg) + " -center -timeout 1&"
    os.system(mesg)

def run(command):
    """Spawns a particular command"""
    command=command+'&'
    os.system(command)


def debugmsg(msg):
    if DEBUG:
        print >> sys.stderr ,msg

